package com.hao.mydownloadlist.event;

/**
 * Created by hao on 16/11/21.
 */
public class DownloadEvent {

    //下载的路径
    private String url;
    //下载文件显示的名字
    private String name;
    //通知的title图片 id
    private int iconId;
    //下载通知中显示的图片
    private String imgUrl;
    //下载将要保存到的文件夹
    private String fileName;
    //下载的对应自己设置的id  暂时没有
    private int id;
    //下载的文件类型
    private String type;
    //下载是否成功 0 為沒有 1 已經下載成功    -1 下载中 -2 下载失败
    private int status = 0;
    //下载进度
    private int current = 0;


    public String getUrl() {
        return url;
    }

    public String getName() {
        return name;
    }

    public int getIconId() {
        return iconId;
    }

    public int getId() {
        return id;
    }

    public String getFileName() {
        return fileName;
    }

    public DownloadEvent setUrl(String url) {
        this.url = url;
        return this;
    }

    public DownloadEvent setFileName(String fileName) {
        this.fileName = fileName;
        return this;
    }

    public DownloadEvent setIconId(int iconId) {
        this.iconId = iconId;
        return this;
    }

    public DownloadEvent setId(int id) {
        this.id = id;
        return this;
    }

    public DownloadEvent setName(String name) {
        this.name = name;
        return this;
    }

    public DownloadEvent setType(String type) {
        this.type = type;
        return this;
    }

    public String getType() {
        return type;
    }

    public DownloadEvent setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
        return this;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public DownloadEvent setStatus(int status) {
        this.status = status;
        return this;
    }

    public int getStatus() {
        return status;
    }

    public int getCurrent() {
        return current;
    }

    public DownloadEvent setCurrent(int current) {
        this.current = current;
        return this;
    }
}
